{% extends "ErpBundle::layout.html.twig" %}
{% block title %}{{ parent() }} - Index{% endblock %}
{% block body %}

{% if error %}
    <div>{{ error.message }}</div>
{% endif %}

<div class="divLogin">
<form action="{{ path('login_check') }}" method="post">
<table class="tableLogin">
	<tr>
		<td class="tdlogin1">
	   	 <label for="username">Log<strong>in</strong>:</label>
	    </td>
	    <td class="tdlogin2">
	    <input type="text" id="username" name="_username" value="{{ last_username }}" />
		</td>
	</tr>
	<tr>
		<td class="tdlogin1">
	    <label for="password">Pass<strong>word</strong>:</label>
	    </td>
	    <td class="tdlogin2">
	    <input type="password" id="password" name="_password" />
		</td>
	</tr>
	    {#
        If you want to control the URL the user is redirected to on success (more details below)
    #}
	<tr>
	<td></td>
	   <td class="tdlogin1">
		<input type="hidden" name="_target_path" value="/erp" />
   		<input type="image" class="buttonLogin" src="{{ asset('bundles/erp/images/valider.png') }}" alt="Submit" />
   		</td>
   	</tr>
</table>
</form>
</div>
{% endblock %}